package com.tcm.content.dao.mapper;

import com.tcm.content.entity.Appraises;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppraisesMapper {
    int deleteByPrimaryKey(Long id);

    int deleteLogicByPrimaryKey(Long id);

    int insert(Appraises record);

    Appraises selectByPrimaryKey(Long id);

    List<Appraises> listPageAppraises(@Param("doctorId") Long doctorId,
                                      @Param("offset") Long offset,
                                      @Param("pagesize") Long pagesize);

    List<Appraises> listAppraises(@Param("doctorId") Long doctorId, @Param("length") Integer length);

    Long countAppraises(Long doctorId);
}